﻿using System.Data.Common;

using Npgsql;
using NpgsqlTypes;

namespace DataAccess
{
    class PostgreSqlDatabaseDriver : DatabaseDriver
    {
        public override string ParameterPlaceHolder
        {
            get { return ":"; }
        }

        public override void SetParameterType(DbParameter parameter, int type)
        {
            NpgsqlParameter p = (NpgsqlParameter)parameter;
            p.NpgsqlDbType = (NpgsqlDbType)type;
        }
    }
}
